package com.ruoyi.shelves.domain;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 工具类型对象 tooltype
 *
 * @author ruoyi
 * @date 2021-12-02
 */
public class Tooltype extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增序列号ID */
    private Long id;

    /** 营销id */
    @Excel(name = "营销id")
    private Long yxid;

    /** 器具名称 */
    @Excel(name = "器具名称")
    private String name;

    /** 是否称重 */
    @Excel(name = "是否称重")
    private Long type;

    /** 单位 */
    @Excel(name = "单位")
    private String dw;

    /** 总数量 */
    @Excel(name = "总数量")
    private Long sum;

    /** 当前数量 */
    @Excel(name = "当前数量")
    private Long curnum;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setYxid(Long yxid)
    {
        this.yxid = yxid;
    }

    public Long getYxid()
    {
        return yxid;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setType(Long type)
    {
        this.type = type;
    }

    public Long getType()
    {
        return type;
    }
    public void setDw(String dw)
    {
        this.dw = dw;
    }

    public String getDw()
    {
        return dw;
    }
    public void setSum(Long sum)
    {
        this.sum = sum;
    }

    public Long getSum()
    {
        return sum;
    }
    public void setCurnum(Long curnum)
    {
        this.curnum = curnum;
    }

    public Long getCurnum()
    {
        return curnum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("yxid", getYxid())
            .append("name", getName())
            .append("type", getType())
            .append("dw", getDw())
            .append("sum", getSum())
            .append("curnum", getCurnum())
            .toString();
    }
}
